/*******************************************************************
** This code is part of Breakout.
**
** Breakout is free software: you can redistribute it and/or modify
** it under the terms of the CC BY 4.0 license as published by
** Creative Commons, either version 4 of the License, or (at your
** option) any later version.
******************************************************************/
#ifndef BALLOBJECT_H
#define BALLOBJECT_H

#include <glad/glad.h>
#include <glm_no_warnings.h>

#include "texture.h"
#include "spriterenderer.h"
#include "gameobject.h"

// BallObject holds the state of the Ball object inheriting
// relevant state data from GameObject. Contains some extra
// functionality specific to Breakout's ball object that
// were too specific for within GameObject alone.
class BallObject : public GameObject
{
public:
    // Ball state	
    GLfloat   Radius;
    // Constructor(s)
    BallObject();
    BallObject(b2World *world, glm::vec2 pos, GLfloat radius, Texture2D sprite);

    // Resets the ball to original state with given position and velocity
	void BallObject::Reset(b2Vec2 &position, b2Vec2 &velocity)const;
};

#endif